﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="stockmove_in_list.aspx.cs" Inherits="WebInvoicingsys.system.storage.stockbill.stockmove_in_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="styles" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="alert_text" runat="server">
    <%=alert_msg%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="main" runat="server">
<div class="row-fluid">
    <div style="padding:5px;">
	    <asp:Button class="btn btn-primary" id="btnReturn" runat="server" Text="返回" 
            onclick="btnReturn_Click" />
        <asp:Button class="btn btn-info" id="btnExport" runat="server" Text="导出" 
            onclick="btnExport_Click" />
	</div>
</div>
<div class="row-fluid">
    <div class="block">
        <div class="navbar navbar-inner block-header">
            <div class="muted pull-left">列表</div>
        </div>
        <div class="block-content collapse in">
            <div class="span12">
                <table class="table table-bordered">
                <thead style="background-color:Silver">
	                <tr>
		                <th>序号</th>
		                <th>调拨单号</th>
                        <th>开单日期</th>
                        <th>调出仓库</th>
                        <th>调入仓库</th>
                        <th>制单日期</th>
                        <th>开单人员</th>
                        <th>开单备注</th>
                        <th>审批状态</th>
                        <th>审批详细</th>
                        <th>月结</th>
                        <th>总类(合计)</th>
                        <th>数量(合计)</th>
                        <th>审批</th>
	                </tr>
                </thead>
                <tbody>
                <asp:Repeater ID="rplist" runat="server" onitemcommand="rplist_ItemCommand">
                <ItemTemplate>
                <tr>
		            <td><%#Eval("dgvID")%></td>
		            <td><%#Eval("billsno")%></td>
                    <td><%#Eval("billdate")%></td>
                    <td><%#Eval("billto")%></td>
                    <td><%#Eval("shipto")%></td>
                    <td><%#Eval("sysdate")%></td>
                    <td><%#Eval("username")%></td>
                    <td><%#Eval("remark")%></td>
                    <td><%#Eval("checkstu")%></td>
                    <td>
                        <button class="btn btn-primary" data-toggle="modal" data-target="#<%#Eval("billsno")%>" style="height:28px">详细</button>
                        <!-- 模态框（Modal） -->
                        <div class="modal fade" id="<%#Eval("billsno")%>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:1000px; font-size:10px; margin-left:-40%">
                            <div class="modal-dialog" style="width:1000px;">
                                <div class="modal-content" style="width:980px; margin:5px">
                                    <table class="table table-bordered">
                                        <thead style="background-color:Silver">
                                        <tr>
                                            <th>审批人员</th>
                                            <th>审批日期</th>
                                            <th>审批备注</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td><%#Eval("checkusername")%></td>
                                            <td><%#Eval("checkdate")%></td>
                                            <td><%#Eval("checkremark")%></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </td>
                    <td><%#Eval("m_stu")%></td>
                    <td><%#Eval("qty1")%></td>
                    <td><%#Eval("qty2")%></td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbtCheck" CommandArgument='<%#Eval("billsno")%>'
                            CommandName="Check" Text="审批" CssClass="btn btn-xs btn-primary"></asp:LinkButton>
                    </td>
	            </tr>
                </ItemTemplate>
                </asp:Repeater>
                </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="scripts" runat="server">
</asp:Content>

